package org.boot.ssm.wxshop.service;

import org.boot.ssm.wxshop.common.BaseService;
import org.boot.ssm.wxshop.domain.CarouselImg;
import org.boot.ssm.wxshop.web.common.JsonResult;

import java.util.List;

/**
 * @program: wxshop
 * @description: 轮播图业务接口
 * @author: 刘涛
 * @create: 2018-03-17 12:46
 **/
public interface CarouselService extends BaseService<CarouselImg> {
    /*****************************
     * @Description: 显示所有轮播图
     * @Param:
     * @return:
     * @Author: 刘涛
     * @Date: 2018/3/17
     *******************************/
    public List<CarouselImg> selectAllAndGoods();

    /*****************************
     * @Description: 根据ID查询轮播图
     * @Param:
     * @return:
     * @Author: 刘涛
     * @Date: 2018/3/17
     *******************************/
    public CarouselImg selectAllAndGoodsById(Integer id);

    /*****************************
     * @Description: 添加或修改
     * @Param:
     * @return:
     * @Author: 刘涛
     * @Date: 2018/3/17
     *******************************/
    public JsonResult addOrUpdate(CarouselImg carouselImg);

    /*****************************
     * @Description: 获取轮播图条数
     * @Param:
     * @return:
     * @Author: 刘涛
     * @Date: 2018/3/17
     *******************************/
    public JsonResult countCarousel();

    /*****************************
    * @Description: 逻辑删除
    * @Param:  
    * @return:  
    * @Author: 刘涛 
    * @Date: 2018/3/17 
    *******************************/
    public JsonResult deleteCarousel(CarouselImg carouselImg);
}
